// acion/index.js

import axios from 'axios';

const http = axios.create({
    baseURL:'https://cnodejs.org/api/v1'
})

export function useTopicList(tab='all',page=1,limit=20,mdrender=true) {

    http.get(
        `/topics?tab${tab}&page=${page}&limit=${limit}&mdrender=${mdrender}`
    )
    .then( res => {

        console.log(res);

    })
    

    return function () {

    }
}